-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] ERC1155 extension: mintToBatch #5032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 3fe33a6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5032 +/- ##
==========================================
+ Coverage 45.28% 45.30% +0.02%
==========================================
Files 1058 1059 +1
Lines 54672 54707 +35
Branches 3950 3954 +4
==========================================
+ Hits 24758 24786 +28
- Misses 29223 29230 +7
Partials 691 691
*This pull request uses carry forward flags. Click here to find out more.
|
| }>; | ||
| }>; | ||
|
|
||
| export function mintToBatch( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add TS doc
also make sure you add a comment about the size of the batch - should not be too big otherwise it will not fit / not be included in a block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty ser. was waiting for a review on the code before I add the docs, seems all good!
9733a91 to
89515e5
Compare
89515e5 to
fb69765
Compare
Merge activity
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds the `mintToBatch` function to the `ERC1155` extension, allowing multiple tokens to be minted in a single transaction. It includes new tests to ensure the functionality works as expected.
### Detailed summary
- Introduced `mintToBatch` function in `mintToBatch.ts`.
- Added `MintToBatchParams` type definition.
- Updated `erc1155.ts` to export `mintToBatch` and `MintToBatchParams`.
- Created tests for `mintToBatch` in `mintToBatch.test.ts` to validate minting multiple tokens.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
fb69765 to
3fe33a6
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR introduces the
mintToBatchfunction as an ERC1155 extension, allowing multiple tokens to be minted in a single transaction. It includes tests to ensure functionality and updates exports accordingly.Detailed summary
mintToBatchfunction inmintToBatch.ts.MintToBatchParamstype defining minting parameters.mintToBatchinmintToBatch.test.ts.erc1155.tsto includemintToBatch.